import App from './App'
import Vue from 'vue'
import store from './store'
Vue.prototype.$store = store

// 路由拦截
import '@/router/permission'

import mixins from './polyfill/mixins'
Vue.mixin(mixins)

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 如此配置即可
// uni.$u.config.unit = 'px'


//招聘的
import config from './common/api/config.js'
Vue.prototype.$config = config;

import util from './common/util.js'
Vue.prototype.$util = util;

import api from './common/api/api.js'
Vue.prototype.$http = api;

import {
	formatDateYM
} from './common/updatefilters'
Vue.filter('formatDateYM', formatDateYM)
import './utils/Time'
// 事件总线注册
const bus = new Vue()
Vue.prototype.$bus = bus;

// 除了某平台均存在
// #ifndef VUE3 
Vue.config.productionTip = false
import myHead from "@/pages/component/baseHead.vue";
Vue.component('myHead', myHead)
App.mpType = 'app'
new Vue({
	...App,
	store,
	render: h => h(App)
}).$mount()
// #endif

// 仅在某平台存在
// #ifdef VUE3  
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif